import BasicLayout from "@/layouts/basic-layout";

const meta = {
  auth: true,
};

const pre = "set-";

export default {
  path: "/set",
  name: "set",
  redirect: {
    name: `${pre}accountSecurity`,
  },
  meta,
  component: BasicLayout,
  children: [
    {
      path: "accountSet",
      name: `${pre}accountSet`,
      meta: {
        ...meta,
        title: "账号设置",
      },
      children: [
        {
          path: "accountSecurity",
          name: `${pre}accountSecurity`,
          meta: {
            ...meta,
            title: "账号安全",
          },
          component: () => import("@/pages/set/accountSecurity"),
        },
        {
          path: "logonLog",
          name: `${pre}logonLog`,
          meta: {
            ...meta,
            title: "登录日志",
          },
          component: () => import("@/pages/set/logonLog"),
        },
        {
          path: "passwordRevise",
          name: `${pre}passwordRevise`,
          meta: {
            ...meta,
            title: "密码修改",
          },
          component: () => import("@/pages/set/passwordRevise"),
        },
        {
          path: "realName",
          name: `${pre}realName`,
          meta: {
            ...meta,
            title: "实名认证",
          },
          component: () => import("@/pages/set/realName")
        },
        {
          path: "personalData",
          name: `${pre}personalData`,
          meta: {
            ...meta,
            title: "个人资料",
          },
          component: () => import("@/pages/set/personalData"),
        },
        {
          path: "announcement",
          name: `${pre}announcement`,
          meta: {
            ...meta,
            title: "官方公告",
          },
          component: () => import("@/pages/set/announcement"),
        },
        {
          path: "messageCenter",
          name: `${pre}messageCenter`,
          meta: {
            ...meta,
            title: "消息中心",
          },
          component: () => import("@/pages/set/messageCenter"),
        },
      ],
    },
  ],
};
